<template>
  <div>pinia 编辑页</div>
  <div>
    <button class="rounded border-2 border-red-200 p-2" @click="() => add(1)">
      点击次数: {{ account }}
    </button>
  </div>
</template>

<script setup lang="ts">
const testStore = useTestStore();
const { add } = testStore;
const { account } = storeToRefs(testStore);
</script>

<style scoped></style>
